#!/usr/bin/env python
#
# Copyright (c) 2011 GhostBSD
#
# See COPYING for licence terms.
#
# gbi.py v 0.0 Tuesday, February 22 2011 10:54:53 Eric
#

import pygtk
pygtk.require('2.0')
import gtk, gobject
import os, os.path, sys, stat, shutil

class gbi:
	os.system("touch /root/Desktop/pcinstall.cfg")
	f = open('/root/Desktop/pcinstall.cfg', 'a')
        f.write("installMode=fresh")
        f.write("installInteractive=no")
        f.write("installType=FreeBSD")
        f.write("installMedium=dvd")
        f.write("packageType=tar")
        f.close()

	

	os.chdir("/GhostBSD/GBI")
	os.system ("python gbi_license.py")
	os.system ("python gbi_partition.py")
	os.system ("python gbi_label.py")
	os.system ("python gbi_user.py ")
	os.system ("python gbi_summary.py")
	os.system("python gbi_install.py")
	os.system("sh gbi.sh")

quit()
def main():
    gtk.main()
    return 0       

if __name__ == "__main__":
    gbi()
    main()
